﻿#encode:utf-8
import webbrowser,sys,os

def runapp(path):
	webbrowser.open(path)
	sys.exit()
	
def openweb(url):
	runapp(url)
	
def close():
	sys.exit()
	
def getJson():
	#获取快速启动信息，返回字典
	fr=open(os.getcwd()+'\\dict.json','r')
	json=fr.read()
	fr.close()
	return eval(json)

def setJson(json):
	#保存快速启动信息
	fw=open(os.getcwd()+'\\dict.json','w')
	fw.write(str(json))
	fw.close()
	
	